<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml" 
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.prime.com.tr/ui" 
		xmlns:h="http://java.sun.com/jsf/html">
 
<h:head>
<title>JSF Demo</title>
<style type="text/css">
body,label,.ui-widget,.ui-menubar-item-label,.ui-menubar-item-label-hassubmenu,.ui-menubar-item-label-selected,.ui-menubar-item-label-hassubmenu-selected,.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button
{
	font-family: Verdana, Arial, sans-serif;
	font-size: 11px;
}
</style>
<link type="text/css" rel="stylesheet" href="css/skins/aristo/skin.css" />
</h:head>
<h:body>
        <h:form>
            <p:menu position="dynamic" trigger="menuButton" my="left top" at="bottom left">
                <p:submenu>
	                <p:menuitem value="Gmail" url="http://www.google.com" />
	                <p:menuitem value="Gmail" url="http://www.google.com" />
	                <p:menuitem value="Gmail" url="http://www.google.com" />
                </p:submenu>
            </p:menu>
            <p:commandButton id="menuButton" value="Show Menu" type="button"/>
        </h:form>
</h:body>
</html>